<?php

namespace app\controllers;

use app\components\AppController;
use app\helpers\SettingHelper;
use app\models\Post;

class SiteController extends AppController {

    public function actionIndex() {
        $vod_list = Post::find()->limit(15)->orderBy('RAND()')->all();

        $this->view->title = SettingHelper::get('web_title');
        return $this->render(compact('vod_list'));
    }

    public function actionIe() {
        return $this->renderPartial('ie');
    }
}
